home *** CD-ROM | disk | FTP | other *** search
- Path: laraby.tiac.net!tbutler
- From: tbutler@laraby.tiac.net (Tim Butler)
- Newsgroups: comp.lang.c
- Subject: Re: start array at k, not 0
- Date: 8 Jan 96 23:00:00 GMT
- Organization: The Internet Access Company
- Message-ID: <tbutler.821142000@laraby.tiac.net>
- References: <Pine.OSF.3.91.960104095358.22268B-100000@io.UWinnipeg.ca> <820787486snz@genesis.demon.co.uk> <Pine.OSF.3.91.960105091211.2861B-100000@io.UWinnipeg.ca> <4cpdt3$3b5@newdelph.cig.mot.com> <30f06d21.167303296@nntp.ix.netcom.com>
- NNTP-Posting-Host: laraby.tiac.net
- X-Newsreader: NN version 6.5.0 #1 (NOV)
-
- miker3@ix.netcom.com (Mike Rubenstein) writes:
- [ Numerical Recipes method of array indexing referenced ]
- ....
- :It's unfortunate that the authors of this book didn't bother to learn
- :C before writing it. As anyone who has read the FAQ [6.13] knows,
- :this results in undefined behavior.
- ...
-
- They have addressed that in the second edition. To retain the ability
- to start indexing at one, they "waste" that first element. They
- allocate one element extra.
-
- --
- tim butler
- tbutler@tiac.net
-
-